package cn.diancan.service;

import cn.diancan.exception.OutMsgException;
import cn.diancan.model.MealLocation;
import cn.diancan.vo.MealLocationVo;
import cn.diancan.vo.other.Pager;

import java.util.List;


public interface MealLocationService {
	
	/**
	 * 保存
	 * @param mealLocation 
	 * @return
	 * @throws OutMsgException
	 * @throws Exception
	 */
	public boolean saveMealLocation(MealLocation mealLocation)throws OutMsgException,Exception;
	
	/**
	 * 删除
	 * @param mealLocationId
	 * @return
	 * @throws OutMsgException
	 * @throws Exception
	 */
	public boolean deleteMealLocationById(Long mealLocationId)throws OutMsgException,Exception; 
	
	/**
	 * 更新
	 * @param mealLocation
	 * @return
	 * @throws OutMsgException
	 * @throws Exception
	 */
	public boolean updateMealLocation(MealLocation mealLocation)throws OutMsgException,Exception; 
	
	
	/**
	 * id查询
	 * @param mealLocationId
	 * @return
	 * @throws OutMsgException
	 * @throws Exception
	 */
	public MealLocation findbyMealLocationId(Long mealLocationId)throws OutMsgException,Exception;


	public MealLocationVo findVobyMealLocationId(Long mealLocationId)throws OutMsgException,Exception;

	/**
	 * 列表
	 * @param pager
	 * @return
	 * @throws OutMsgException
	 * @throws Exception
	 */
	public Pager findMealLocationPager(Pager pager)throws OutMsgException,Exception;
	 
	
	/**
	 * list查询
	 * @param pageNo
	 * @param row
	 * @return
	 * @throws OutMsgException
	 * @throws Exception
	 */
	public List<MealLocation> findMealLocationList(Integer pageNo, Integer row)throws OutMsgException,Exception;


	public List<MealLocationVo> findMealLocationVoList(Integer pageNo, Integer row)throws OutMsgException,Exception;

}
